package com.lijing.binarySortTree;

/**
 * @Description TODO
 * @title: BinarySortTreeDemo
 * @Author LiJing
 * @Date: 2021/3/2910:40 上午
 * @Version 1.0
 */
public class BinarySortTreeDemo {
    public static void main(String[] args) {
        int[] arr = {7,3,10,12,5,1,9};
        BinarySortTree binarySortTree = new BinarySortTree();
        for (int i : arr){
            Node node = new Node(i);
            binarySortTree.add(node);
        }
        binarySortTree.deleteNode(10);
        binarySortTree.deleteNode(1);
        binarySortTree.infixOrder();

    }
}
